package com.yuda.campsite.service;

import com.yuda.campsite.domain.InvitationCode;
import com.yuda.campsite.dto.*;

import java.util.List;

/**
 * 邀请码Service接口
 *
 * @author wyn
 * @date 2021-09-29
 */
public interface IInvitationCodeService {

    /**
     * 查询邀请码列表
     *
     * @return 邀请码集合
     */
    public List<InvitationWithStuInfo> selectInvitationCodeList(InvitationWithStuInfo invitationWithStuInfo);

    /**
     * 新增邀请码
     *
     * @return 结果
     */
    public int insertInvitationCode(SimpleInvCodeForGen simpleInvCodeForGen);

    List<String> name(Integer campsiteId);

    int invCodeNameisUsed(SimpleInvCodeForGen simpleInvCodeForGen);

    int appendInvitationCode(SimpleInvCodeForGen simpleInvCodeForGen);

    List<InvitationCategory> categoryList(Integer campsiteId);

    List<InvitationCategoryDetail> categoryDetailList(Integer campsiteId, String reduction);

    List<InvCodeWithStuInfo> getInvCodeWithStuInfo(Integer campsiteId, String reduction, String name);
}
